/** 存放所有影院模块相关接口 */
import myaxios from "../MyAxios";

import URLENV from "../../http/BaseUrl";
const BMDURL = URLENV.BMDURL;

const shoppaddApi = {

    /** 查询所有商店 */
    queryAll(){
        let url = BMDURL + "/map"
        return myaxios.get(url)
    },

    /** 添加商店 */
    add(params){
        let url = BMDURL + "/map"
        return myaxios.post(url, params)
    },


     /**
   * 删除商店
   * @param {Object} params  {id:1}
   */
    delete(params){
    let url = BMDURL + "/map"
    return myaxios.post(url, params)
  },

  deleteshop(id){
    let url = BMDURL +  `/map`
    return myaxios.delete(url + `/${id}`)
  }



};
export default shoppaddApi